package com.thinkgem.jeesite.modules.test.service.impl;

import com.thinkgem.jeesite.modules.test.dao.DemoDao;
import com.thinkgem.jeesite.modules.test.entity.Demo;
import com.thinkgem.jeesite.modules.test.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
//@Transactional
public class DemoServiceImpl implements DemoService {

    @Autowired
    private DemoDao demoDao;

    @Transactional
    @Override
    public void insert(Demo demo) {

        demoDao.insert(demo);

    }
}
